xenpaging: add watch thread to catch guest shutdown
authorOlaf Hering <olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:27 +0000 (10:47 +0200)
committerOlaf Hering <olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:27 +0000 (10:47 +0200)
commit64816ee56f60b190d4916a80616e28bbc60d19ad
tree95e014b41161b6168bbb6a4739765a2b520ddb42
parent3ea71e936f7e5a42a2e4c4695d92179fa9ddaff1
xenpaging: add watch thread to catch guest shutdown

If xenpaging is started manually then no event is sent to xenpaging when
the guest is shutdown or rebooted.  Add a watch on the @releaseDomain
node to leave the loop and gracefully shutdown the pager.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/xenpaging/xenpaging.c